/*
 * @Author: Li Zengkun
 * @Date: 2022-06-28 09:20:56
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-07-01 08:37:07
 * @Description: 路由
 */
import { createRouter, createWebHashHistory } from 'vue-router'

import indexPage from '@/views/IndexPage.vue'
import productPage from '@/views/ProductPage.vue'
import hotSellPage from '@/views/HotSell.vue'
import teamMate from '@/views/TeamMate.vue'
import hotelPage from '@/views/HotelPage.vue'
import CompanyInfo from '@/views/CompanyInfo.vue'
import ConnectUs from '@/views/ConnectUs.vue'
import NewsPage from '@/views/NewsPage.vue'
import AboutUs from '@/views/AboutUs.vue'
import DetailTemplate from '@/views/DetailTemplate.vue'

const routes = [{
        path: '/',
        name: 'Index',
        component: indexPage
    },
    {
        path: '/product',
        name: 'ProductPage',
        component: productPage,

    },
    {
        path: '/hotsell',
        name: 'HotSell',
        component: hotSellPage,

    },
    {
        path: '/teammate',
        name: 'TeamMate',
        component: teamMate
    },
    {
        path: '/hotel',
        name: 'HotelPage',
        component: hotelPage,

    },
    {
        path: '/companyinfo',
        name: 'CompanyInfo',
        component: CompanyInfo
    },
    {
        path: '/connectus',
        name: 'ConnectUs',
        component: ConnectUs
    },
    {
        path: '/news',
        name: 'NewsPage',
        component: NewsPage,

    },
    {
        path: '/aboutus',
        name: 'AboutUs',
        component: AboutUs
    },
    {
        path: '/detail',
        name: 'DetailTemplate',
        component: DetailTemplate
    },
]

const router = createRouter({
    routes,
    history: createWebHashHistory()
})

export default router